{{- define "app.labels" -}}
app: {{ .Release.Name | quote }}
{{- end -}}
{{/*
Create the name of the secret account to use
*/}}
{{- define "service.pullSecrets" -}}
{{- with .Values.privateRegistrySecret }}
{{- printf "{\"auths\":{\"%s\":{\"username\":\"%s\",\"password\":\"%s\",\"email\":\"%s\",\"auth\":\"%s\"}}}" .registry .username .password .email (printf "%s:%s" .username .password | b64enc) | b64enc }}
{{- end }}
{{- end }}